Skip to content

Strip unstable rustfmt, normalize to stable 1.94.1, fix burn refs#133

Merged
AdaWorldAPI merged 3 commits into
masterfrom
cursor/stable-rustfmt-bd77
May 1, 2026
Merged

Strip unstable rustfmt, normalize to stable 1.94.1, fix burn refs#133
AdaWorldAPI merged 3 commits into
masterfrom
cursor/stable-rustfmt-bd77

Conversation

@AdaWorldAPI
Copy link
Copy Markdown
Owner

Changes

1. rustfmt.toml — stable options only

Removed 14 unstable options that were silently ignored by stable rustfmt. Kept stable-only config:

  • edition = "2021", max_width = 120, fn_params_layout = "Compressed", etc.
  • cargo fmt --all --check now passes clean on stable 1.94.1

2. Codebase reformatted (303 files, whitespace only)

One-time normalization to stable rustfmt. Primary changes:

  • K&R brace style (was Allman via brace_style = "AlwaysNextLine")
  • Macro bodies reformatted (was suppressed via format_macro_bodies = false)
  • Import layout normalized
  • Line wrapping at 120 cols

3. Burn crate references fixed

  • tracel-ai/burnAdaWorldAPI/burn@9b2b671 in crates/burn/Cargo.toml
  • Submodule URL updated in .gitmodules
  • crates/burn excluded from workspace resolver (rand 0.10 vs workspace rand 0.9 conflict)

Verification

  • cargo fmt --all --check0 diffs (was 4473)
  • cargo clippy --features native -- -D warnings — clean
  • cargo test --lib -p ndarray — 1819 passed, 0 failed, 36 ignored
  • cargo check — workspace resolves cleanly
Open in Web Open in Cursor 

cursoragent and others added 3 commits May 1, 2026 12:55
Removed 14 unstable options (brace_style, indent_style, format_macro_bodies,
skip_macro_invocations, etc.) that were silently ignored by stable rustfmt.
Updated edition from 2018 to 2021. Stable config only.

Co-authored-by: AdaWorldAPI <AdaWorldAPI@users.noreply.github.com>
One-time reformatting of 303 source files to match the stable-only
rustfmt.toml. Primary changes: K&R brace style (was Allman), macro body
formatting, import layout, line wrapping at 120 cols.

No functional changes — whitespace only.

Co-authored-by: AdaWorldAPI <AdaWorldAPI@users.noreply.github.com>
- Replace tracel-ai/burn git refs with AdaWorldAPI/burn@9b2b671
- Update submodule URL to AdaWorldAPI/burn
- Exclude crates/burn from workspace (rand 0.10 vs 0.9 conflict)
  Burn is built standalone via `cargo check -p burn --manifest-path crates/burn/Cargo.toml`

Co-authored-by: AdaWorldAPI <AdaWorldAPI@users.noreply.github.com>
@AdaWorldAPI AdaWorldAPI marked this pull request as ready for review May 1, 2026 13:43
@AdaWorldAPI AdaWorldAPI merged commit 3b1ef9d into master May 1, 2026
8 of 15 checks passed
AdaWorldAPI pushed a commit that referenced this pull request May 13, 2026
PR #133 (commits 7ca1cf3 + ed59b3b) stripped all 13 nightly-only
directives from `rustfmt.toml` and normalized the codebase to stable
rustfmt 1.94.1. The CI fmt job, however, was never updated to leverage
this — it still used:

  uses: dtolnay/rust-toolchain@nightly
  continue-on-error: true

…which left fmt failures showing as "passing" on PR checks (an
atom-bomb red flag for code-style invariants). The original
`continue-on-error: true` rationale ("5,679 drift sites with nightly
rustfmt") was dependent on the nightly-only directives that PR #133
already removed. The band-aid was stale.

This commit completes what PR #133 implied:

- Switch fmt job from `dtolnay/rust-toolchain@nightly` to
  `dtolnay/rust-toolchain@1.95.0` (the rust-toolchain.toml pin).
- Remove `continue-on-error: true` — fmt failures now block merge,
  as they should.
- Rename the job from `format/nightly` → `format/stable` to reflect
  the actual toolchain.
- Replace the stale 24-line comment block with a 12-line explanation
  citing PR #133 as the source of stable-clean state.

Plus the 3 drift sites between stable 1.94.1 and stable 1.95.0
(import ordering changes in `src/hpc/clam.rs`, `src/hpc/mod.rs`,
`src/hpc/udf_kernels.rs`) — `cargo fmt --all` on 1.95.0 normalizes
them. Bundled with the 1.95 bump since this PR is the trigger.

Verified: `cargo fmt --all --check` clean on 1.95.0 post-commit.

Companion to PR #133 / "where did that PR go" — completes the missed
step.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants